/*
 * Copyright 2007 Jeffrey Palm
 */

import java.util.*;
import com.sun.syndication.feed.synd.*;

public class RSSCollection {

  private final List feeds = new ArrayList();
  void addFeed(SyndFeed v) {feeds.add(v);}

  public SyndFeed[] getFeeds() {
    return (SyndFeed[])feeds.toArray(new SyndFeed[0]);
  }

  public int size() {
    return feeds.size();
  }

  public String toString() {
    String res = "{";
    SyndFeed[] fs = getFeeds();
    if (res != null) {
      for (int i=0; i<fs.length; i++) {
        res += fs[i];
        if (i<fs.length-1) res += ",";
      }
    }
    res += "}";
    return res;
  }
}